package indi.gao.redis;

import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2019$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2019$-08$-26$</P>
 * <P>@version 1.0</P>
 */
public class RedisTest {
    public static void main(String[] args) {
        JedisPoolConfig config = new JedisPoolConfig();
        config.setMaxIdle(3);
        config.setTestOnBorrow(true);
        redis.clients.jedis.Jedis jedisClient127;
        redis.clients.jedis.Jedis jedisClient163;
        jedisClient127 = new JedisPool(config, "127.0.0.1", 6379, 30000, "zhangfeng&tope365").getResource();
        jedisClient163 = new JedisPool(config, "172.17.19.163", 6379, 30000, "zhangfeng&tope365").getResource();
        String hget = jedisClient127.hget("test:readapp:ee:read:11014541", "readEeRewardDay");
        String hget1 = jedisClient163.hget("test:readapp:ee:read:11014541", "readEeRewardDay");
        System.out.println(hget + "127");
        System.out.println(hget1 + "163");
    }
}
